/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bus.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.bus.entity.VaccineNotice;
import com.thinkgem.jeesite.modules.bus.dao.VaccineNoticeDao;

/**
 * 疫苗补助须知Service
 * @author zxl
 * @version 2019-08-12
 */
@Service
@Transactional(readOnly = true)
public class VaccineNoticeService extends CrudService<VaccineNoticeDao, VaccineNotice> {

	public VaccineNotice get(String id) {
		return super.get(id);
	}

	/**
	 * @author Zhang Xingliang
	 * @description 获取疫苗补助须知内容
	 * @date 11:34 2019/8/12
	 * @param vaccineNotice
	 * @return com.thinkgem.jeesite.common.persistence.ResponseResult
	 **/
	public VaccineNotice findVaccineNotice(VaccineNotice vaccineNotice) {
		return dao.findVaccineNotice(vaccineNotice);
	}

	public List<VaccineNotice> findList(VaccineNotice vaccineNotice) {
		return super.findList(vaccineNotice);
	}
	
	public Page<VaccineNotice> findPage(Page<VaccineNotice> page, VaccineNotice vaccineNotice) {
		return super.findPage(page, vaccineNotice);
	}
	
	@Transactional(readOnly = false)
	public void save(VaccineNotice vaccineNotice) {
//		dao.updateStatus();
		super.save(vaccineNotice);
	}

	/**
	 * @author Zhang Xingliang
	 * @description 禁用当前可用的须知
	 * @date 16:24 2019/8/12 0012
	 * @return com.thinkgem.jeesite.modules.bus.entity.VaccineNotice
	 **/
	@Transactional(readOnly = false)
	public void updateStatus() {
		dao.updateStatus();
	}
	
	@Transactional(readOnly = false)
	public void delete(VaccineNotice vaccineNotice) {
		super.delete(vaccineNotice);
	}
	
}